package code.rocky.chapter02;

import java.util.Scanner;

public class Suggest21 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println(" 请输入多个数字判断奇偶: ");
        while (scanner.hasNextInt()) {
            int i = scanner.nextInt();
            String str = i + " ->" + (i%2 == 1 ? "奇数" : "偶数");
            System.out.println(str);
        }
    }
}
